<h1 style="height:30px; color:#FFFFFF; background:#156eed; padding-left:10px; font-weight:bold; font-size:14px;padding-top: 10px">Your Order Receipt</h1>
<center>
    <img src="{{$base_url}}/application/modules/core/images/common/company_banner.png"/>
</center>
<table width="100%" class="ordetable" cellpadding="2" cellspacing="0">
    <tr>
        <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">
            PartNum
        </th >
        <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">
            Description
        </th>
        <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">
            Quantity
        </th>
        <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">
            Unit Price
        </th>
        <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">
            Total Ptice
        </th>

    </tr>

    {{foreach from=$order->order_item_m_order->get() item=i}}
    <tr>
        <td style="border-bottom: 1px solid #E6EDF5;">
            {{$i->part_num}}
        </td>
        <td style="border-bottom: 1px solid #E6EDF5;">
            {{$i->short_desc}}
        </td>
        <td align="right" style="border-bottom: 1px solid #E6EDF5;">
            {{$i->qty|string_format:"%.0f"}}
        </td>
        <td align="right" style="border-bottom: 1px solid #E6EDF5;">
            ${{$i->unit_price|string_format:"%.2f"}}
        </td>
        <td align="right" style="border-bottom: 1px solid #E6EDF5;">
            ${{$i->price_x_qty()|string_format:"%.2f"}}
        </td>
    </tr>
    {{/foreach}}
    <tr>
        <td style="font-weight: bold;color:#156EED">
            Total Price:
        </td>
        <td  align="right" colspan="4" style="font-weight: bold;color:#156EED" style="border-bottom: 1px solid #E6EDF5;">
            ${{100|string_format:"%.2f"}}
        </td>
    </tr>

</table>
<br/>
<table width="100%"  >
    <tr>
        <td align="left" valign="top" >
            {{assign var=ob value=$order->get_billing_address()}}
            <table width="100%" class="ordetable">
                <tr>
                    <th style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;" colspan="2">Billing Address</th>
                </tr>
                <tr>
                    <td class="label" style="border-bottom: 1px solid #E6EDF5;">Name:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->name}}</td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px solid #E6EDF5;" class="label" valign="top">Address:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">
                        {{$ob->address_1}}
                        {{if $ob->address_2<>""}}
                            <br/>
                            {{$ob->address_2}}
                        {{/if}}
                    </td>
                </tr>
                <tr>
                    <td class="label" style="border-bottom: 1px solid #E6EDF5;">Country:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->country}}</td>
                </tr>
                <tr>
                    <td class="label" style="border-bottom: 1px solid #E6EDF5;">Province:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->province}}</td>
                </tr>
                <tr>
                    <td class="label" style="border-bottom: 1px solid #E6EDF5;">Postal Code:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->postal_code}}</td>
                </tr>
                {{if $ob->phone<>""}}
                   <tr>
                       <td class="label" valign="top" style="border-bottom: 1px solid #E6EDF5;">Phone:</td>
                        <td style="border-bottom: 1px solid #E6EDF5;">
                            {{$ob->phone}}
                            {{if $ob->phone_ext<>""}}
                            <br>ext. {{$ob->phone_ext}}
                            {{/if}}
                        </td>
                    </tr>
                {{/if}}
                {{if $ob->fax<>""}}
                   <tr>
                        <td class="label" style="border-bottom: 1px solid #E6EDF5;">Fax:</td>
                        <td style="border-bottom: 1px solid #E6EDF5;">
                            {{$ob->fax}}
                        </td>
                    </tr>
                {{/if}}

            </table>

        </td>
        <td align="left" valign="top">
           {{assign var=ob value=$order->get_shipping_address()}}
            <table width="100%" class="ordetable">
                <tr>
                    <th colspan="2" style= "text-align: center;background: #E6EDF5;color: #4F76A3;font-size: 100% !important;">Shipping Address</th>
                </tr>
                <tr>
                    <td style="border-bottom: 1px solid #E6EDF5;" class="label">Name:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->name}}</td>
                </tr>
                <tr>
                    <td class="label" valign="top" style="border-bottom: 1px solid #E6EDF5;">Address:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">
                        {{$ob->address_1}}
                        {{if $ob->address_2<>""}}
                            <br/>
                            {{$ob->address_2}}
                        {{/if}}
                    </td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px solid #E6EDF5;" class="label">Country:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->country}}</td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px solid #E6EDF5;" class="label">Province:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->province}}</td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px solid #E6EDF5;" class="label">Postal Code:</td>
                    <td style="border-bottom: 1px solid #E6EDF5;">{{$ob->postal_code}}</td>
                </tr>
                {{if $ob->phone<>""}}
                   <tr>
                       <td style="border-bottom: 1px solid #E6EDF5;" class="label" valign="top">Phone:</td>
                        <td style="border-bottom: 1px solid #E6EDF5;">
                            {{$ob->phone}}
                            {{if $ob->phone_ext<>""}}
                            <br>ext. {{$ob->phone_ext}}
                            {{/if}}
                        </td>
                    </tr>
                {{/if}}
                {{if $ob->fax<>""}}
                   <tr>
                        <td style="border-bottom: 1px solid #E6EDF5;" class="label">Fax:</td>
                        <td style="border-bottom: 1px solid #E6EDF5;">
                            {{$ob->fax}}
                        </td>
                    </tr>
                {{/if}}

            </table>
        </td>
    </tr>
</table>

<br/>
<center>
    <h1  style="height:30px; color:#FFFFFF; background:#156eed; padding-left:10px; font-weight:bold; font-size:14px;padding-top: 10px">Thank you for shopping with us!!</h1>
</center>